﻿using System;

namespace Masuit.Tools;

public static class ShortExtensions
{
    /// <summary>
    /// 转换成字节数组
    /// </summary>
    /// <param name="value"></param>
    /// <returns></returns>
    public static byte[] GetBytes(this short value)
    {
        return BitConverter.GetBytes(value);
    }
}
